#pragma once

#include <cstring>
#include <cerrno>

class nocopy // 不可拷贝的类
{
public:
    nocopy() = default;
    nocopy(const nocopy &) = delete;
    nocopy &operator=(const nocopy &) = delete;
};

enum Errno
{
    Err_Use = 1,
    Err_Socket,
    Err_Bind,
    Err_Listen,
    Err_Connect,
};